﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace MediumApi.Db
{
    /// <summary>
    /// 内容主表
    /// </summary>
    [Table("tb_contents")]
    public class Contents
    {
        /// <summary>
        /// 内容ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }
        /// <summary>
        /// 封面图URL
        /// </summary>
        public string CoverImage { get; set; }
        /// <summary>
        /// 摘要
        /// </summary>
        public string Summary { get; set; }
        /// <summary>
        /// 上架状态 1:上架 2:下架
        /// </summary>
        public int Display { get; set; }
        /// <summary>
        /// 内容类型(1-文章 3-视频 2-图集)
        /// </summary>
        public int ContentType { get; set; }
        /// <summary>
        /// 作者ID
        /// </summary>
        public string AuthorId { get; set; }
        /// <summary>
        /// 出版人
        /// </summary>
        public string Publish { get; set; }
        /// <summary>
        /// 频道ID
        /// </summary>
        public int ChannelId { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string Source { get; set; }
        /// <summary>
        /// 状态(0-草稿 1-待审核 2-已发布 3-已下架)
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishTime { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedAt { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdatedAt { get; set; }
        /// <summary>
        /// 浏览数
        /// </summary>
        public int ViewCount { get; set; }
        /// <summary>
        /// 点赞数
        /// </summary>
        public int LikeCount { get; set; }
        /// <summary>
        /// 评论数
        /// </summary>
        public int CommentCount { get; set; }
        /// <summary>
        /// 收藏数
        /// </summary>
        public int CollectCount { get; set; }
        /// <summary>
        /// 分享数
        /// </summary>
        public int ShareCount { get; set; }
        /// <summary>
        /// 是否推荐
        /// </summary>
        public int Recommend { get; set; }
        /// <summary>
        /// 推送
        /// </summary>
        public int Push { get; set; }
        /// <summary>
        /// 是否精选
        /// </summary>
        public int isChoiceness { get; set; }
    }
}
